class chongwu:

    def __init__(self,name,age):
        self.name = name
        self.age = age
        self.__serect = '秘密'

    def eat(self,food):
        print('{}吃{}'.format(self.name,food))

    def __fun1(self):
        print(self.__serect)

    def sleep(self):
        print('人类睡觉')

cat = chongwu('猫',6)
cat.eat('饼干')


class Student(chongwu):
    def __init__(self, name, age,banji):
        self.name = name
        self.age = age
        self.banji = banji
        self.__serect = '秘密'
    def study(self,place):
        print('在{}学习'.format(place))
    def eat(self,food):
        print('我是凶狠的花猫')
        print('喵喵是{}要吃{}'.format(self.name,food))

s1 = Student('你的小可爱',6,'花猫班')
class Smallstudent(Student):
    pass
sx = Smallstudent('小学生',10,1)
sx.sleep()
